package edu.kit.aifb.lidasora.ppmModel;

public final class DataSet<T> {

	private ModelNode<T> content;
	
	
	private final int count;
	private final double predictionValue;

	private final long timeCreated;
	
	private final long lastTimeAccessed;
	
	DataSet (ModelNode<T> content){
		this.content = content;
		this.count = content.getData().getCount();
		this.timeCreated = content.getTimeCreated();
		this.lastTimeAccessed = content.getLastAccessedTime();
		this.predictionValue = content.getData().getTransitionValue();
	}

	public int getCount() {
		return count;
	}



	public long getTimeCreated() {
		return timeCreated;
	}

	public long getLastTimeAccessed() {
		return lastTimeAccessed;
	}
	
	public ModelNode<T> getNode() {
		return this.content;
	}
	
	public String toString(){
		return content.toString() + "\t frequency: " + this.count;
	}

	/**
	 * @return the content
	 */
	public ModelNode<T> getContent() {
		return content;
	}

	/**
	 * @return the predictionValue
	 */
	public double getPredictionValue() {
		return predictionValue;
	}
}
